using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Webcar.BLL;
using ToolsLayer;
using BusinessEntity;
using PersistenceLayer;
using System.Collections.Generic;

namespace Webcar
{
    public partial class DetailList : PageBase
    {
        protected string CarNo
        {
            get { return this.Request.QueryString["carno"]; }
        }
        protected string page
        {
            get { return this.Request.QueryString["page"]; }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.IsPostBack)
                return;
            //ViewManager.SetTabstripStyle(this.Tabstrip1);
            this.CarInfoView1.InitViewInfo(CarNo);
            this.RepairListByCar1.InitRepairInfo(CarNo);
            this.SecList1.InitSecInfo(CarNo);

            if (page == "2")
                this.ASPxPageControl1.ActiveTabIndex = 1;
            if (page == "3")
                this.ASPxPageControl1.ActiveTabIndex = 2;

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Write(this.Request.Url.ToString());
        }
    }
}
